home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / HyperCard / DDXCMDs / About DD XCMDs next >
Text File  |  1990-12-31  |  2KB  |  43 lines

  1.  
  2. There are 2 XCMDs and 1 XFCN supplied. It is assumed that you know what an XCMD is and that you know how to install it. If you don't, then these are not for you.
  3.  
  4. (1) DDIsInstalled
  5.  
  6. This XFCN returns TRUE if DiskDoubler INIT is installed and FALSE otherwise. You might use this in a Hypercard script as follows:
  7.     if DDIsInstalled() then
  8.         DDCompress    "MyFile"
  9.     end if
  10.  
  11.  
  12. (2) DDCompress and DDExpand
  13.  
  14. These two XCMDs require that DiskDoubler INIT be installed. Call DDIsInstalled() before using these to verify that DD is installed.
  15.  
  16. The syntax is:
  17.     DDCompress|DDExpand  FullPath [,FullPath]
  18.  
  19. For example, to compress and then expand a file "MyFile" in  folder "MyFolder" on a disk "MyDisk":
  20.     DDCompress "MyDisk:MyFolder:MyFile"
  21.     DDExpand "MyDisk:MyFolder:MyFile"
  22.     
  23. To compress and then expand a folder "MyFolder" on a disk "MyDisk":
  24.     DDCompress "MyDisk:MyFolder:"
  25.     DDExpand "MyDisk:MyFolder:"
  26.     
  27. To compress and then expand everything on the disk "MyDisk":
  28.     DDCompress "MyDisk:"
  29.     DDExpand "MyDisk:"
  30.  
  31.  
  32. A second argument is optional, and specifies an output file. It can be used only if the first argument is a file; you cannot compress a folder or a disk to a different output file.
  33.  
  34. Source code is provided for these XCMDs in case you would like to create your own XCMDs.
  35.  
  36. Salient has reserved the names "DDCompress", "DDExpand", and "DDIsInstalled". We may also use "DDCombine", "DDSplit" and "DDJoin" and "DDFileInfo".
  37.  
  38. Please do not use these names for your XCMDs, as we may use all of these names in the future.
  39.  
  40.  
  41.  
  42. Thank You,
  43. Salient